package com.jic.member.service;

import java.lang.Long;
import java.util.List;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.member.entity.MemberFavorite;
import com.jic.member.request.MemberFavoriteRequest;
import com.jic.member.request.MemberFavoriteRestRequest;

/**
* 会员收藏信息表
* @author : mj
* @email : 
* @since : 2020-01-13 04:22:35
* @version : v1.0.0
*/
public interface MemberFavoriteService {

    long insert(MemberFavorite memberFavorite);

    long delete(MemberFavorite memberFavorite);

    long update(MemberFavorite memberFavorite);

    MemberFavorite queryByPrimaryKey(Long id);

    List<MemberFavorite> query(MemberFavorite memberFavorite);

    PageResult<MemberFavorite> queryPage(MemberFavoriteRequest memberFavoriteRequest, Page pageQuery);

    long queryPageCount(MemberFavoriteRequest memberFavoriteRequest);

    RestResult memberCollects(MemberFavoriteRestRequest form);

    RestResult addCollects(MemberFavoriteRestRequest form);

    RestResult queryCollectionsPage(MemberFavoriteRestRequest form);

    RestResult queryFollowersByDeptId(MemberFavoriteRestRequest memberFavoriteRestRequest);

    Boolean  queryFollowersByEntityId(MemberFavoriteRestRequest memberFavoriteRestRequest);

    RestResult countFollowersByEntityId(MemberFavoriteRestRequest memberFavoriteRestRequest);


}
